<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>电子商城</title>
<link href="styles/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%
  int flag = (int)request.getSession().getAttribute("flag");
  if (flag == 32)
    out.print("<script>alert('修改失败')</script>");
  request.getSession().setAttribute("flag", 0);
%>
<div class="main">
  


<div class="top">
  <p>
    <a href="<c:url value="/GoodsList"/>">商品管理</a> |
    <a href="<c:url value="/MemberManageList"/>">会员管理</a> |
    <a href="<c:url value="/OrderManageList"/>">订单管理</a> |
    <a href="manage1.jsp">退出后台</a>
  </p>
</div>
  <div class="adm_con">
    <div class="bg_3">
      <div class="bg_1">
        <div class="bg_2">
          <h3><img src="images/25.gif" class="flo_right" /><img src="images/23.gif" class="flo_left" /><span>商品列表</span></h3>
          <div class="padd">
            <p> [  修改商品信息]</p>
            <form namespace="/" id="goodsManageEdit" name="editForm" action="<c:url value="/GoodsUpdate"/>" method="post" enctype="multipart/form-data">
              <input type="hidden" name="shopGoods.id" value="${Goods.id}" id="goodsManageEdit_shopGoods_id"/>
              <input type="hidden" name="shopGoods.picture" value="clothing.jpg" id="goodsManageEdit_shopGoods_picture"/>
              <ul class="add">                
                <li><span> 商品名称： </span>
                  <input type="text" name="shopGoods.goodsname" value="${Goods.name}" id="goodsManageEdit_shopGoods_goodsname"/> <font color="red">*</font>
                </li>
                <li><span>上传图片：</span>
                  <span><img src="images/goods/goods${Goods.id}.jpg" width="30px" height="30px"/></span>
                  <input type="file" name="upload" value="" id="goodsManageEdit_upload"/>
                </li>
                <li><span>价    格：</span>
                  <input type="text" name="shopGoods.price" value="${Goods.price}" id="goodsManageEdit_shopGoods_price"/> <font color="red">*</font>
                </li>
                <li><span>数    量：</span>
                  <input type="text" name="shopGoods.count" value="${Goods.count}" id="goodsManageEdit_shopGoods_count"/> <font color="red">*</font>
                </li>
                <li style="height:100px;"><span>商品简介：</span>
                  <textarea name="shopGoods.introduce" cols="60" rows="5" id="goodsManageEdit_shopGoods_introduce">${Goods.detail}</textarea>
                </li>
                
              </ul>
              <p class="ali_center">
                <img src="images/12.gif" onclick="document.editForm.submit();" style="border:0; cursor:hand"/>
                <img src="images/13.gif" onclick="document.editForm.reset();" style="border:0; cursor:hand"/>
                <img src="images/29.gif" onclick="window.location.href='/GoodsList'" style="border:0; cursor:hand"/>
              </p>
            </form>




          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</body>
</html>
